package com.lingz.manager.modules.wuxue.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lingz.manager.common.utils.ResultUtil;
import com.lingz.manager.common.vo.Result;
import com.lingz.manager.modules.wuxue.entity.HuangshiData;
import com.lingz.manager.modules.wuxue.entity.TuopuInsectData;
import com.lingz.manager.modules.wuxue.service.HuangshiDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.IOException;
import java.io.Serializable;
import java.util.List;

/**
 * (WHuangshiData)表控制层
 *
 * @author makejava
 * @since 2023-12-02 20:47:29
 */
@Slf4j
@RestController
@Api(description = "黄氏土壤气象情况数据接口")
@RequestMapping("/wuxue/huangshiData")
public class HuangshiDataController extends ApiController {

    @Autowired
    HuangshiDataService huangshiDataService;

    @GetMapping("/findHuangshiDataList")
    @ApiOperation("不分页查询依科曼虫情数据")
    public Result<List<HuangshiData>> findHuangshiDataList(HuangshiData huangshiData) throws IOException {
        return new ResultUtil<List<HuangshiData>>().setData(huangshiDataService.findHuangshiDataList(huangshiData));
    }
}

